package com.ruoyi.web.controller.chargepile;


import com.ruoyi.chargepile.domain.vo.OnlyOneQueryValue;
import com.ruoyi.chargepile.service.OrdersService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author zxc
 * @since 2024-07-03
 */
@RestController
@RequestMapping("/orders")
public class OrdersController {

    @Autowired
    private OrdersService ordersService;

    @GetMapping("/listOrderNumber")
    public AjaxResult listOrderNumber() {
        List<OnlyOneQueryValue> queryNumber = ordersService.listOrderNumber();
        return AjaxResult.success(queryNumber);
    }

}

